<back-to-top class="back_top" title="返回顶部"></back-to-top>
  <!-- Page Content -->
<div class="container">
    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">
           <div class="input-group input-group-lg">
                <span class="input-group-addon">
                    <i class="glyphicon glyphicon-search"></i>
                </span>
                <input type="text" class="form-control" ng-model="query.name" placeholder="请输入关键词">
                <span class="input-group-addon list-btn" ng-click="collect.search()">搜索</span>
            </div>  
        </div>
        <div class="col-md-3"></div>
        <div class="col-md-12 list-title">
            <p>上千款Hybrid APP，UI设计模板并且价格低至5元起,并享受稳定的代码更新及版本升级</p>
        </div>
    </div>
    <hr>
    <div class="row">
        <div class="col-md-2">
            <div class="list-group list-sort">
                <a ng-click="listsort('created')" class="list-group-item">时间<i class="glyphicon" ng-class="sorts.time"></i></a>
                <a ng-click="listsort('price')" class="list-group-item">价格<i class="glyphicon" ng-class="sorts.price"></i></a>
                <a ng-click="listsort('times')" class="list-group-item">次数<i class="glyphicon" ng-class="sorts.num"></i></a>
                <div class="list-group-item">标签<i class="glyphicon glyphicon-menu-hamburger"></i>
                    <p class="list-sort-1"><input type="checkbox" ng-click="tag('react')">React</p>
                    <p class="list-sort-1"><input type="checkbox" ng-click="tag('ionic')">Ionic</p>
                    <p class="list-sort-1"><input type="checkbox" ng-click="tag('ui')">UI</p>
                    <p class="list-sort-1"><input type="checkbox" ng-click="tag('app')">其他</p>
                </div>
            </div>
        </div>
        <div class="col-md-10">
            <div class="row">
                <div class="col-sm-3 col-lg-3 col-md-3" ng-repeat="hot in postList">
                    <div class="thumbnail">
                        <img src="{{hot.tagimg}}" ng-click="detail(hot)">
                        <div class="caption">
                            <h4 class="pull-right price">￥{{hot.price}}</h4>
                            <h4><a href="#">{{hot.name}}</a>
                            </h4>
                        </div>
                        <div class="ratings">
                            <p class="pull-right">{{hot.times}} 下载</p>
                            <p star="hot.start.a"></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-6" style="text-align: center;">
            <nav aria-label="Page navigation">
                <ul class="pagination pagination-lg">
                    <li>
                      <a ng-click="collect.prePage()">
                        <span aria-hidden="true">&laquo;</span>
                      </a>
                    </li>
                    <li ng-click="collect.currentPage(0)" 
                    ng-show="collect.showPage(0)">
                        <a style="{{query.pages==collect.showPageVal(0)?'background: #000;color: #fff;':''}}">{{collect.showPageVal(1)}}</a>
                    </li>
                    <li ng-click="collect.currentPage(1)" 
                    ng-show="collect.showPage(1)">
                        <a style="{{query.pages==collect.showPageVal(1)?'background: #000;color: #fff;':''}}">{{collect.showPageVal(2)}}</a>
                    </li>
                    <li ng-click="collect.currentPage(2)" 
                    ng-show="collect.showPage(2)">
                        <a style="{{query.pages==collect.showPageVal(2)?'background: #000;color: #fff;':''}}">{{collect.showPageVal(3)}}</a>
                    </li>
                    <li ng-click="collect.currentPage(3)" 
                    ng-show="collect.showPage(3)">
                        <a style="{{query.pages==collect.showPageVal(3)?'background: #000;color: #fff;':''}}">{{collect.showPageVal(4)}}</a>
                    </li>
                    <li ng-click="collect.currentPage(4)" 
                    ng-show="collect.showPage(4)">
                        <a style="{{query.pages==collect.showPageVal(4)?'background: #000;color: #fff;':''}}">{{collect.showPageVal(5)}}</a>
                    </li>
                    <li>
                        <a ng-click="collect.nextPage()">
                            <span aria-hidden="true">&raquo;</span>
                        </a>
                    </li>
                </ul>
            </nav> 
        </div>
        <div class="col-md-4 show">当前页：{{query.pages + 1}}，总页数：{{query.totalPages}}</div>
    </div>


</div>
<!-- /.container -->
<style>
    .show{
        margin-top: 30px;
        font-size: 15px;
    }
</style>